Count the number occurrences of each word in a text - Python